Skip to content

feat(github): adopt the scm repository - #285

Merged
UnstoppableMango merged 1 commit into
mainfrom
feat/adopt-scm-repo
Oct 15, 2026
Merged

UnstoppableMango merged 1 commit into
mainfrom
feat/adopt-scm-repo

Conversation

@UnstoppableMango

@UnstoppableMango UnstoppableMango commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Layer 3 of 4.

Imports unmango/github and its main ruleset (github:1269371) as resource scm, with repoName: 'github' and ignoreChanges on settings that differ from PublicRepo defaults. Adds rulesetOptions to PublicRepo, matching repoOptions.

Local preview (against the pre-rename stack): 2 imports, 2 creates (component, vulnerability alerts), 1 state-only update (licenseTemplate), 127 unchanged.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Repository Updates
    • Updated the GitHub repository’s description and topics.
    • Added a required check to the repository’s protection rules.
    • Updated repository management to support customized ruleset options, allowing repository-specific settings to be applied.

@UnstoppableMango
UnstoppableMango added this pull request to stack #287 October 5, 2026 01:23
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1dc02788-3d1d-4e31-b0f1-42dce7760040
📥 Commits

Reviewing files that changed from the base of the PR and between bfd456f and 7c89a1b.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c53d1842-bdc9-4ec3-ba44-4db35347fdf9
📥 Commits

Reviewing files that changed from the base of the PR and between a9d913b and 39db3a8.

📒 Files selected for processing (2)
  • github/components/publicRepo.ts
  • github/repos.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

PublicRepo now accepts custom options for its main ruleset. github/repos.ts adds the scm resource for the existing github repository and configures its description, topics, and required check.

Changes: Public repository setup

Layer / File(s) Summary
Pass options to the main ruleset
github/components/publicRepo.ts
PublicRepoArgs adds rulesetOptions. PublicRepo passes these options to the main ruleset resource after setting the component as parent.
Configure the imported scm repository
github/repos.ts
The new scm resource imports the existing github repository and ruleset. It ignores changes to selected imported settings and sets the description, topics, and required pulumi check.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 39db3

The reviewed changes show no actionable merge blocker. Confirm the import behavior through the normal Pulumi preview before deployment.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main change: adopting the SCM repository in GitHub configuration.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@UnstoppableMango
UnstoppableMango force-pushed the feat/adopt-scm-repo branch 2 times, most recently from 25d585d to a32caf4 Compare October 5, 2026 03:56
@UnstoppableMango
UnstoppableMango marked this pull request as ready for review October 5, 2026 03:58
@UnstoppableMango
UnstoppableMango force-pushed the feat/adopt-scm-repo branch 5 times, most recently from 39db3a8 to 4172a06 Compare October 11, 2026 02:52
@pulumi

pulumi Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🍹 The Update (preview) for UnstoppableMango/unmango-scm/prod (at 7c89a1b) was successful.

Resource Changes

    Name  Type                                                                      Operation
+   scm   github:index/repositoryVulnerabilityAlerts:RepositoryVulnerabilityAlerts  create
*   scm   github:index/repositoryRuleset:RepositoryRuleset                          import
+   scm   unmango:github:PublicRepo                                                 create
~   scm   github:index/repository:Repository                                        update

Base automatically changed from chore/pulumi-project-scm to main October 15, 2026 00:59
Import unmango/github and its main ruleset so this repository's
settings are code like every other repo. The resource is named scm and
repoName keeps the current GitHub name until the rename. ignoreChanges
covers the settings that differ from PublicRepo defaults so the import
succeeds.

PublicRepo gains rulesetOptions, matching repoOptions, so an existing
ruleset can be imported.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@UnstoppableMango
UnstoppableMango merged commit 9ca2e20 into main Oct 15, 2026
6 checks passed
@UnstoppableMango
UnstoppableMango deleted the feat/adopt-scm-repo branch October 15, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant